<template>
  <div class="header">
    <div class="header-left">
      <span class="iconfont">&#xe787;</span>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe600;</span>
      输入游玩主题
    </div>
    <div class="header-right">
      <router-link  to='/city'>
        <span class="city">{{this.city}}</span>
      </router-link>

      <span class="iconfont">&#xe625;</span>
    </div>

  </div>
</template>
<script>
import { mapState } from 'vuex'
export default {
  
  name: "homeHeader",
  computed:{
    ...mapState(['city'])
  }
};
</script>
<style lang="stylus" scoped>
@import '~@/assets/stylus/var.stylu';

.header {
  display: flex;
  background: $bgColor;
  height: 0.86rem;
  color: #fff;
  line-height: 0.86rem; 
}

.header-left {
  width: 0.64rem;
  text-align: center;
}

.header-input {
  flex: 1;
  padding-left: 0.2rem;
  background: #fff;
  height: 0.64rem;
  margin-top: 0.12rem;
  margin-left: 0.2rem;
  border-radius: 0.1rem;
  color: #ccc;
  line-height: 0.64rem;
}

.header-right {
  width: 1.24rem;
  text-align: center;
}
.city
  color white
</style>

